package com.zlb.app.modules.quartz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zlb.app.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Desc
 * @Author zWX1367238
 * @Date 2024-08-27 11:15:55
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("job_log")
@ApiModel("定时任务调度日志表")
public class JobLog extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("任务日志ID")
    private Long id;

    @ApiModelProperty("任务ID")
    private Long jobId;

    @ApiModelProperty("任务名称")
    private String jobName;

    @ApiModelProperty("任务组名")
    private String jobGroup;

    @ApiModelProperty("调用目标字符串")
    private String invokeTarget;

    @ApiModelProperty("日志信息")
    private String jobMessage;

    @ApiModelProperty("执行状态（0正常 1失败）")
    private Integer status;

    @ApiModelProperty("异常信息")
    private String exceptionInfo;

    @ApiModelProperty("开始时间")
    private Date startTime;

    @ApiModelProperty("结束时间")
    private Date endTime;

}
